package dfbz.demo02;
public class compare {
    private int i;
    private int j;

    public compare(int i, int j) {
        this.i = i;
        this.j = j;
    }

    public int getI() {
        return i;
    }

    public void setI(int i) {
        this.i = i;
    }

    public int getJ() {
        return j;
    }

    public void setJ(int j) {
        this.j = j;
    }

    public void compareTwo(){
        if(this.i>this.i){
            System.out.println("最大值是"+this.i);
        }else {
            System.out.println("最大值是"+this.j);
        }
    }
}
